package com.example.wryproject.database;

import ohos.data.orm.OrmObject;
import ohos.data.orm.annotation.Entity;
import ohos.data.orm.annotation.PrimaryKey;

@Entity(tableName = "cardData")
public class CardData extends OrmObject {
    @PrimaryKey()
    private long cardId;
    private int dimensions;

    public CardData() {
        super();
    }

    public long getCardId() {
        return cardId;
    }

    public void setCardId(long cardId) {
        this.cardId = cardId;
    }

    public int getDimensions() {
        return dimensions;
    }

    public void setDimensions(int dimensions) {
        this.dimensions = dimensions;
    }

    public CardData(long cardId, int dimensions) {
        this.cardId = cardId;
        this.dimensions = dimensions;
    }
}
